package com.lin.bootstudy.domain;

import com.baomidou.mybatisplus.annotation.*;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("test")
public class User {
    private Integer id;
    @TableField("name")
    private String userName;
    @TableField(select = false)
    private String password;
    private String birthday;
    @TableField(exist = false)
    private String sex;
    @TableField(value = "delete_flag",select = false)
    private Integer deleteFlag;
    @Version
    private Integer version;

    @Override
    public String toString() {
        return "User{" +
                "id=" + id +
                ", userName='" + userName + '\'' +
                ", password='" + password + '\'' +
                ", birthday='" + birthday + '\'' +
                '}';
    }
}
